<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script>
        let username = "moduel-a";
    </script>
     <script>
        let username = "module-b";
    </script> -->
    <script>
        let modeuleA = (function(){
            let username = "moduel-a";
            return { username }
        })()
        console.log(modeuleA);
    </script>
     <script>
         let moduleB = (function(){
             let username = "module-b";
            return { username }
         })()
        console.log(moduleB);

    </script>
</head>
<body>
    
</body>
</html>